import {Injectable} from '@angular/core';
import {_HttpClient} from '@delon/theme';
import {Observable} from 'rxjs/Observable';

@Injectable()
export class ResourceService {

    url_resourlist = 'Resource/list';

    constructor(private http: _HttpClient) {
    }

    /**
     * 获取资源列表
     * @returns
     */
    getResourceList(): Observable<{}> {
        return this.http.get(this.url_resourlist);
    }
}
